class Car:
    # wheels = 4  # 静态类属性

    def drive(self,speed):
        self.wheels = 4  # 实例属性
        print(f"driving~~{speed}~~~~~")
    @classmethod
    def stop(cls):
        print('stop~~~~~~~')
        # cls.wheels = 6
        # print(cls.wheels)

    @staticmethod
    def test():
        print('test~~~~~')


car1 = Car()
car1.drive(100)
print(car1.wheels)
# print(Car.wheels)  # 实例属性不能通过类名直接访问
print(Car.stop())
print(car1.test())
car1.wheels = 5
print(car1.wheels)

car1.color = 'red'
print(car1.color)
